<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ include file="../../head/head.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<script type="text/javascript"
		src="<%=path%>/resource/js/jquery/1.6.2/jquery-1.6.2.min.js">
	</script>
	<script type="text/javascript"
		src="<%=path%>/resource/js/jquery-easyui-1.3.3/jquery.cookie.js">
	</script>
	<link id="easyuiTheme" rel="stylesheet" type="text/css"
			href="<%=path%>/resource/js/jquery-easyui-1.3.3/themes/theme.css"></link>
	<link rel="stylesheet" type="text/css"
		href="<%=path%>/resource/js/jquery-easyui-1.3.3/themes/icon.css"></link>
	<script type="text/javascript"
		src="<%=path%>/resource/js/jquery-easyui-1.3.3/jquery.easyui.min.js">
	</script>
		<script type="text/javascript" src="<%=path%>/js/jquery/jquery.form.js"></script>
	
	<script type="text/javascript" charset="UTF-8"
		src="<%=path%>/resource/js/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js">
	</script>
	<!-- INDEX.JS -->
	<script type="text/javascript" 
		src="<%=path%>/page/sys/subcompany/subcompany_list.js"> 
	</script>
	<script type="text/javascript">
		$(document).ready(function() {
			//总面板的宽和高
			//$("#cc").css("width", $(window).width() - 24);
			$("#cc").css("height", $(window).height() - 20);
			//$("#c").css("width", $(window).width() - 	26);
			$("#c").css("height", $(window).height() - 	50);
		});
	</script>
</head>
<body style="OVERFLOW: hidden;">
	<!-- 总面板开始 -->
	<div id="cc" class="easyui-layout">
		<div id="c" data-options="region:'center',title:'集团列表'" style="OVERFLOW: hidden;">
			<!-- 按钮和查询栏开始 -->
			<div id="tb" style="padding:5px;height:auto">
				<!-- 按钮区开始 -->
				<div style="margin-bottom:5px">
					<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="toAddOrUpdate()">新增</a>
					<a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="toUpdate();">修改</a>
<!--					<a href="#" class="easyui-linkbutton" iconCls="icon-save" plain="true">保存</a>-->
<!--					<a href="#" class="easyui-linkbutton" iconCls="icon-cut" plain="true">剪切</a>-->
					<a href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="doDeleteCompany();">删除</a>
<!--					<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'">取消</a>-->
<!--					<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload'" onclick="refrush()">刷新</a>-->
<!--					<a href="#" class="easyui-linkbutton" data-options="plain:true">自定义</a>-->
<!--					<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-print'">打印</a>-->
<!--					<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-help'">帮助</a>-->
<!--					<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-back'">回退</a>-->
				</div>
				<!-- 按钮区结束 -->
				<!-- 查询区开始 -->
				<div>
				<form action="" id="searchForm" method="post">
				集团名称： <input type="text" name="subcompanyBean.keyName" style="width:130px"/>
<!--					Date From: <input type="text" class="easyui-datebox" style="width:90px"></input>-->
<!--					To: <input type="text" class="easyui-datebox" style="width:90px"></input>-->
<!--					Language: -->
<!--					<select class="easyui-combobox" panelHeight="auto" style="width:100px">-->
<!--						<option value="java">Java</option>-->
<!--						<option value="c">C</option>-->
<!--						<option value="basic">Basic</option>-->
<!--						<option value="perl">Perl</option>--> 
<!--						<option value="python">Python</option>-->
<!--					</select>-->
					<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" onclick="toQuery();">查询</a>
				</form>
				</div>
				<!-- 查询区结束 -->
			</div>
			<!-- 按钮和查询栏结束 -->
			<!-- 列表开始 -->
			<table id="subcompanyList"></table>
			<!-- 列表结束 -->
		</div>
	</div>
	<!-- 总面板结束 -->
	<div id="mydialog" class="easyui-dialog"
			style="width: 614px; height: 340px;"
			data-options="title:'新增/修改',modal:true,closed:true">
	    <form id="addOrUpdateform" method="post">
	        <input type="hidden" name='subcompanyBean.subcompanyId'
									id="subcompanyIds" />
							<input type="hidden" name='subcompanyBean.id' id="sbID" />
							<input type='hidden' name='subcompanyBean.state' id='state' value=2 />
							<input type='hidden' name='subcompanyBean.customerManager'
									id='customerManager' />
			<table style="width: 100%;height: 100%; text-align:center;" border="0">
				<tr>
					<td width="20%"><span style="color: red">*</span>企业名称</td>
					<td width="30%" align="left"><input class="easyui-validatebox" type="text" id="keyName" name="subcompanyBean.keyName" data-options="required:true"></input></td>
					<td><span style="color: red">*</span>集团电话</td>
					<td align="left"><input class="easyui-validatebox" type='text' maxlength="12" id="headPhone" validType="number" name="subcompanyBean.headPhone" data-options="required:true"/></td>
				</tr>
				<tr>
					<td><span style="color: red">*</span>企业简称</td>
					<td align="left"><input class="easyui-validatebox" type="text" id="companyName" name="subcompanyBean.companyName" data-options="required:true"></input></td>
					<td><span style="color: red">*</span>行业</td>
					<td align="left"><input class="easyui-validatebox" type="text" id="industry" name="subcompanyBean.industry" data-options="required:true"></input></td>
				</tr>
				<tr>
					<td><span style="color: red">*</span>集团简码</td>
					<td align="left"><input class="easyui-validatebox" type='text' id="subcompanyCode" name="subcompanyBean.subcompanyCode" data-options="required:true"/></td>
					<td><span style="color: red">*</span>集团负责人</td>
					<td align="left"><input class="easyui-validatebox" type='text' id="manager" name="subcompanyBean.manager" data-options="required:true"/></td>
				</tr>
				<tr>
					<td><span style="color: red">*</span>合作类型：</td>
					<td align="left">
						<select name='subcompanyBean.serviceType' id='serviceType' style="width: 155px;">
							<option value="1" selected="selected">公有模式</option>
							<option value="2">私有模式</option>
							<option value="3">混合模式</option>
						</select>
					</td>
					<td width="20%">BOSSID</td>
					<td width="30%" align="left"><input type="text" id="bossId" name="subcompanyBean.bossId"></input></td>
				</tr>
									
				<tr>
					<td>备注</td>
					<td colspan="3" align="left"><textarea id="remarks" name="subcompanyBean.remarks" rows="8" cols="53"></textarea></td>
				</tr>
				<tr>
					<td colspan="4" align="right">
						<a href="#" class="easyui-linkbutton" iconCls="icon-save" plain="true" onclick="doAddCompany();">保存</a>
						<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload'" id="reset" onclick="clearForm();">刷新</a>
						<a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" onclick="closeDialog();">关闭</a>
					</td>
				</tr>
			</table>
		</form>
	</div>
	
	<div id='confirm' class="easyui-dialog"
		style="width: 352px; height: 100px;"
		data-options="title:'请输入您的密码',modal:true,closed:true">
	<form id="mima" method="post">
	<table style="width: 100%; height: 100%; text-align: center;" border="0">
		<tr>
			<td class="popC_text" style="width: 25%"><span style="color: red">*</span>密码：
			</td>
			<td class="popC_input" style="width: 75%">
			<span class="input-bg"> <input VALUE=''
				placeholder="请输入您的密码" type="password" 
				id="user_password" name=""
				autocomplete="off" maxlength="100" class="ipt tipinput1 easyui-validatebox"
				required='true' onkeyup="alterFocus(event);" /> </span></td>
		</tr>
		<tr>
			<td colspan="4" align="right"><a href="#"
				class="easyui-linkbutton" iconCls="icon-save" plain="true"
				onclick='confirmDel()'>确认</a>
				<a href="#" class="easyui-linkbutton"
				data-options="plain:true,iconCls:'icon-cancel'"
				onclick="closeDelDialog()">取消</a>
				</td>
		</tr>
	</table>
	</form>
	</div>
</body>
</html>